#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a1, a2, n, k = 3, num[1001], i, j, res;
	scanf("%d %d %d", &a1, &a2, &n);
	num[1] = a1, num[2] = a2;

	for (i = 1; i <= n; i++)
	{
		res = num[i] * num[i + 1];
		if (res < 10)
			num[k++] = res;
		else
		{
			num[k++] = res / 10;  //先放置十位
			num[k++] = res % 10;  //再放置个位
		}

		if (k > n)
			break;
	}

	printf("%d", a1);
	for (j = 2; j <= n; j++)
		printf(" %d", num[j]);
	return 0;
}